﻿using System;

using System.Threading.Tasks;



class Program

{

    static async Task Main(string[] args)

    {

        Console.WriteLine("请输入a（1<a<10）：");

        double a = double.Parse(Console.ReadLine());

        Console.WriteLine("请输入b（1<b<10）：");

        double b = double.Parse(Console.ReadLine());



        double result = await CalculateAsync(a, b);

        Console.WriteLine($"a^58 + b^50 = {result}");

    }



    static async Task<double> CalculateAsync(double a, double b)

    {

        Task<double> taskA = Task.Run(() => Math.Pow(a, 58));

        Task<double> taskB = Task.Run(() => Math.Pow(b, 50));



        return await taskA + await taskB;

    }

}
